import axios from "@u/request";
const fetchCateLists = (params = {}) => {
  return axios.get('/cateLists', { params })
}
// 删除商品
const delCate = (params = {}) => (axios.delete('/delCate', { params }))
//新增商品分类
const AddCates = (params = {}) => {
  return axios.post('/addCate', params)
}
// 修改商品分类
const updateCate = (params = {}) => {
  return axios.put('/updateCate', params)
}
// 获取分类详情
const fetchCateDetail = (params = {}) => {
  return axios.get('/getCateDetail', { params })
}
export {
  fetchCateLists,
  delCate,
  AddCates,
  updateCate,
  fetchCateDetail
}